import Cookie from 'js-cookie'
export default {
  state: {
    titlename:''
  },
  mutations: {
    settitlename(state, val) {
      state.titlename = val
      Cookie.set('titlename', val)
    },
    cleartitlename(state) {
      state.titlename = ''
      Cookie.remove('titlename')
    },
    gettitlename(state) {
      state.titlename = Cookie.get('titlename')
    },
  },
  actions: {},
}
